import { S } from '../../s';
import { IPSAppPortletCat } from './ipsapp-portlet-cat';
import { IPSLanguageRes } from '../../res/ipslanguage-res';
import { IPSSysCss } from '../../res/ipssys-css';
import { IPSSysImage } from '../../res/ipssys-image';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSAppPortletCatImpl
  extends PSModelObjectImpl
  implements IPSAppPortletCat
{
  get codeName(): string {
    return this.M.codeName;
  }

  protected namepslanguageres: IPSLanguageRes;
  getNamePSLanguageRes(): IPSLanguageRes | null {
    return (
      this.namepslanguageres ||
      (this.namepslanguageres = this.fillObjectModel(
        S._276,
        this.M.getNamePSLanguageRes,
        S._2bd,
      ) as IPSLanguageRes)
    );
  }

  protected pssyscss: IPSSysCss;
  getPSSysCss(): IPSSysCss | null {
    return (
      this.pssyscss ||
      (this.pssyscss = this.fillObjectModel(
        S._278,
        this.M.getPSSysCss,
        S._2ac,
      ) as IPSSysCss)
    );
  }

  protected pssysimage: IPSSysImage;
  getPSSysImage(): IPSSysImage | null {
    return (
      this.pssysimage ||
      (this.pssysimage = this.fillObjectModel(
        S._27b,
        this.M.getPSSysImage,
        S._2ad,
      ) as IPSSysImage)
    );
  }

  get ungroup(): boolean {
    return this.M.ungroup;
  }
  get cls(): string {
    return 'PSAppPortletCatImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._c) return true;
    return super.instanceof(cls);
  }
}
